package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.ContactsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author v2tila on 0:24 2019/4/7
 */

public interface ContactsJPA extends JpaRepository<ContactsEntity,Integer>,
        JpaSpecificationExecutor<ContactsEntity> {
    boolean existsByUniqueIdAndContactUniqueId(String uniqueId, String contactUniqueId);
    List<ContactsEntity> findByUniqueId(String uniqueId);
    ContactsEntity findByUniqueIdAndContactUniqueId(String uniqueId, String contactUniqueId);


}
